﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;


namespace BusinessLogicLayer
{
    public class SendEmail
    {
        public void Send(string from, string to, string subject, string body)
        {
            MailMessage m = new MailMessage(from, to);
            m.Subject = subject;
            m.IsBodyHtml = true;
            m.Body = body;
            SmtpClient c = new SmtpClient("lynx.iss.nus.edu.sg");
            c.Send(m);
            c.Dispose();
        }
    }
}
